
using System;
using System.Data;

namespace Serpis
{
	[System.ComponentModel.ToolboxItem(true)]
	public partial class MiComboBox : MiBin
	{
		private ComboBoxHelper comboBoxHelper;
		
		public MiComboBox ()
		{
			this.Build ();
		}
		
		public void Init(IDbConnection dbConnection, string commandText)
		{
			comboBoxHelper = new ComboBoxHelper(comboBox, dbConnection, commandText);
			comboBoxHelper.Changed += delegate {
				raiseChanged();
			};
		}
		
		public string Id {
			get {return comboBoxHelper.Id;}
			set {comboBoxHelper.Id = value;}
		}
		
	}
}
